package com.docker.jy.domain;

import java.math.BigDecimal;

import com.docker.chy.domain.DoctorPatient;
import com.docker.common.core.domain.entity.SysUser;
import com.docker.fy.domain.DoctorRegistration;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.docker.common.annotation.Excel;
import com.docker.common.core.domain.BaseEntity;

/**
 * 医生业绩统计对象 doctor_order
 * 
 * @author ruoyi
 * @date 2025-04-15
 */
public class DoctorAchievement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long id;

    /** 订单类型（字典） */
    @Excel(name = "订单类型", readConverterExp = "字=典")
    private Long ordertype;

    /** 医生id */
    @Excel(name = "医生id")
    private Long doctorId;

    /** 患者id */
    @Excel(name = "患者id")
    private Long patientId;

    /** 应收金额 */
    @Excel(name = "应收金额")
    private BigDecimal totalcost;

    /** 处方id */
    @Excel(name = "处方id")
    private Long prescriptionId;

    /** 收费人员 */
    @Excel(name = "收费人员")
    private String tollcollector;

    /** 逻辑删除 */
    private Long del;

    //通过doctor一对一查询医生信息
    private SysUser doctor;

    //通过patient一对一查询患者信息
    private DoctorPatient patient;

    //通过patient_id一对一查询挂号信息
    private DoctorRegistration registration;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrdertype(Long ordertype) 
    {
        this.ordertype = ordertype;
    }

    public Long getOrdertype() 
    {
        return ordertype;
    }

    public void setDoctorId(Long doctorId)
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId()
    {
        return doctorId;
    }

    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }

    public void setTotalcost(BigDecimal totalcost) 
    {
        this.totalcost = totalcost;
    }

    public BigDecimal getTotalcost() 
    {
        return totalcost;
    }

    public void setPrescriptionId(Long prescriptionId) 
    {
        this.prescriptionId = prescriptionId;
    }

    public Long getPrescriptionId() 
    {
        return prescriptionId;
    }

    public void setTollcollector(String tollcollector) 
    {
        this.tollcollector = tollcollector;
    }

    public String getTollcollector() 
    {
        return tollcollector;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    public SysUser getDoctor() {
        return doctor;
    }

    public void setDoctor(SysUser doctor) {
        this.doctor = doctor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ordertype", getOrdertype())
            .append("doctorId", getDoctorId())
            .append("patientId", getPatientId())
            .append("totalcost", getTotalcost())
            .append("prescriptionId", getPrescriptionId())
            .append("tollcollector", getTollcollector())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .toString();
    }
}
